﻿#region Usings

using PolyGameEngine.GamePieces.Common;
using PolyGameEngine.Tools;

using FarseerPhysics.Dynamics;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

#endregion

namespace PolyMorph.CustomGamePieces
{
    public class Magnet: ForceTile
    {
        public Magnet(PhysicsGame PhysicsGame, World World, Material Material,
            Texture2D SpriteSheet, Vector2 Position, float Rotation, int saveLineIndex)
            : base(PhysicsGame, World, Material, SpriteSheet, 1, Position, new Vector2(0, -50), Rotation, -7, 1, saveLineIndex, "Magnet")
        { }

        public override void Effect()
        {
            if (GamePieceInEffect.material.Identifier.Equals("Steel"))
                base.Effect();    
        }

    }
}
